class VideoChannelModel {
  Map<int, String> typeArr = {
    1: 'IQIYI',
    2: 'YOUKU',
    3: 'MGTV',
    4: 'BiliBili',
    5: '搜狐视频',
    6: 'PPTV',
    7: '欢喜首映',
    8: '埋堆堆',
    9: '乐视视频',
    10: '1905电影网',
    11: '南瓜电影',
    12: '咪咕视频',
    13: '抖音',
    14: 'AcFun',
    15: '虎牙',
    16: '斗鱼',
    17: '快手',
    18: '西瓜视频',
    19: '头条视频',
    20: '好看视频',
    21: '微博',
    22: '小红书',
    23: '微视视频',
    24: '泥视频',
    25: '123pan',
  };

  int Id;
  int VideoId;
  int Type;

  VideoChannelModel(this.Id, this.VideoId, this.Type);

  factory VideoChannelModel.fromJson(Map<String, dynamic> json) {
    return VideoChannelModel(
      json["id"],
      json["video_id"],
      json["type"],
    );
  }

  String get TypeText => this.typeArr[this.Type] ?? "";
}
